package org.dromara.system.openApi.service;

import org.dromara.system.openApi.domain.OpenApiClient;
import org.dromara.system.openApi.domain.vo.OpenApiClientVo;
import org.dromara.system.openApi.domain.bo.OpenApiClientBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * openApiClientService接口
 *
 * @author wdm
 * @date 2024-03-13
 */
public interface IOpenApiClientService {

    /**
     * 查询openApiClient
     */
    OpenApiClientVo queryById(Long id);

    /**
     * 查询openApiClient
     */
    OpenApiClient queryByClientId(String clientId);

    /**
     * 查询openApiClient列表
     */
    TableDataInfo<OpenApiClientVo> queryPageList(OpenApiClientBo bo, PageQuery pageQuery);

    /**
     * 查询openApiClient列表
     */
    List<OpenApiClientVo> queryList(OpenApiClientBo bo);

    /**
     * 新增openApiClient
     */
    Boolean insertByBo(OpenApiClientBo bo);

    /**
     * 修改openApiClient
     */
    Boolean updateByBo(OpenApiClientBo bo);

    /**
     * 校验并批量删除openApiClient信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
